package com.atguigu.common.exception;

import lombok.Data;

/**
 * @author Guo 2022/9/13 18:44:13
 */
@Data
public class BizException extends RuntimeException {
    private Integer code;
    private String msg;

    public BizException(BizCodeEnum bizCodeEnum) {
        super(bizCodeEnum.getMsg());
        this.code = bizCodeEnum.getCode();
        this.msg = bizCodeEnum.getMsg();
    }


}

